﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.views.popups.achievement {
    import reprise.ui.*;
    import reprise.controls.*;
    import net.wooga.pets.utils.*;

    public class AchievementBox extends UIComponent {

        private var _id:String;
        private var _medalsDisplay:UIComponent;

        public function AchievementBox(_arg1:String){
            this._id = _arg1;
        }
        override protected function initialize():void{
            super.initialize();
            addCSSClass("achievementBox");
        }
        override protected function createChildren():void{
            super.createChildren();
            RepriseUtils.addComponent(this, "dottedLine");
        }
        public function createNumberLabel(_arg1:String):void{
            RepriseUtils.addLabel(this, "numberLabel", _arg1);
        }
        public function createMedal(_arg1:String, _arg2:Boolean):void{
            if (!this._medalsDisplay){
                this._medalsDisplay = RepriseUtils.addComponent(this, "medalsDisplay");
            };
            if (_arg2){
                RepriseUtils.addComponent(this._medalsDisplay, ("medal " + _arg1));
            } else {
                RepriseUtils.addComponent(this._medalsDisplay, "medal medal_blank");
            };
        }
        public function createFrameAndImage(_arg1:String):void{
            var _local2:UIComponent = RepriseUtils.addComponent(this, "frame");
            var _local3:UIComponent = RepriseUtils.addComponent(_local2, "imageDisplay");
            RepriseUtils.addComponent(_local3, ("image image_" + _arg1));
            RepriseUtils.addComponent(this, "lockOverlay");
        }
        public function setCompleted(_arg1:String):void{
            RepriseUtils.addComponent(this, "crest");
            RepriseUtils.addLabel(this, "greyLabel showcardGothicFont", _arg1);
        }
        public function createRewardDisplay(_arg1:String, _arg2:String, _arg3:int, _arg4:int):void{
            RepriseUtils.addLabel(this, "rewardLabel", _arg1);
            var _local5:UIComponent = RepriseUtils.addComponent(this, "rewardDisplay");
            RepriseUtils.addComponent(_local5, (("icon " + _arg2) + "Icon"));
            RepriseUtils.addLabel(_local5, "rewardsLabel", ("x" + _arg3));
            RepriseUtils.addComponent(_local5, "icon xpIcon");
            RepriseUtils.addLabel(_local5, "xpLabel", ("x" + _arg4));
        }
        public function setIsLocked(_arg1:Boolean, _arg2:String):void{
            if (_arg1){
                addCSSClass("locked");
                RepriseUtils.addComponent(this, "lock");
                RepriseUtils.addLabel(this, "greyLabel showcardGothicFont levelLabel", _arg2);
            };
        }
        public function createGetRewardButton(_arg1:String):LabelButton{
            return (RepriseUtils.addLabelButton(this, "rectButtonFixedWidth myriadProFont", _arg1));
        }
        public function createHeadline(_arg1:String):void{
            RepriseUtils.addLabel(this, "headline showcardGothicFont", _arg1);
        }

    }
}//package net.wooga.pets.views.popups.achievement 
